//
//  UIButton+Extension.swift
//  我的微博
//
//  Created by 杨庆 on 15/10/25.
//  Copyright © 2015年 双元班. All rights reserved.
//

import UIKit

extension UIButton{
    convenience init(title: String,imageName: String, color: UIColor = UIColor.darkGrayColor(),fontSize: CGFloat = 12){
        self.init()
        setTitle(title, forState: UIControlState.Normal)
        setImage(UIImage(named: imageName), forState: UIControlState.Normal)
        setTitleColor(color, forState: UIControlState.Normal)
        titleLabel?.font = UIFont.systemFontOfSize(fontSize)
    
    }
}
